<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title> 4-9 继续循环continue</title>
    <link rel="stylesheet" type="text/css" href="../../../css/style.css"/>
    <style type="text/css">
    </style>

    <script type="text/javascript">
        var mynum =new Array(70,80,66,90,50,100,89);//定义数组mynum并赋值
        var i;
        for(i=0;i<mynum.length;i++)
        {
            if(mynum[i]<60)
            {
                document.write("成绩不及格，不输出！"+"<br>");
                continue;
            }
            document.write("成绩:"+mynum[i]+"及格，输出!"+"<br>");
        }

        function Continue(){
            var num;
            for(num=1; num<=10; num++){
                if(num==5){
                    continue;
                }
                document.write("数值"+num+"<br>");
            }
        }
    </script>
</head>

<body>
<div align="center">
    <p><a href="../../index.php#jsjjp" class="fontSize" title="点击进入该目录">目录</a></p>
</div>

<input type="button" value="点击continue循环" onclick="Continue()" />

<script type="text/javascript">

</script>

</body>
</html>
